home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 132_01 / shoot.h < prev    next >
Text File  |  1985-08-19  |  768b  |  30 lines

  1. #DEFINE    NOBJ    7    /* plane,gun,bullet,boom,obj1,obj2 and dummy object */
  2. #DEFINE    CENTER    128
  3. #DEFINE    PLANE    0
  4. #DEFINE    GUN    1
  5. #DEFINE    BULLET    2
  6. #DEFINE    BOOM    3
  7. #DEFINE    OBJ1    4
  8. #DEFINE    OBJ2    5
  9.  
  10. #DEFINE    TARGET    1    /* target class */
  11.  
  12. #DEFINE    PLNX0    10    /* Initial plane position and velocity */
  13. #DEFINE    PLNY0    8
  14. #DEFINE    VPLNX    2
  15. #DEFINE    PLNXM    240    /* maximum x position for plane */
  16. #DEFINE    GUNXMX    248
  17. #DEFINE    GUNYMX    184
  18. #DEFINE    BULXMX    248
  19. #DEFINE    BULYMX    184
  20. #DEFINE    JOYMIN    24
  21. #DEFINE    JOYMAX    40
  22. #DEFINE    SWPORT    65280    /* Port location for input switches */
  23. #DEFINE    SWTL    2    /* Left switch bit mask */
  24. #DEFINE    SWTR    1    /* Right switch biy mask    */
  25. #DEFINE    NTICKS    2    /* Number of clock ticks before page update */
  26. 
  27.             flag = NULL;
  28.             proc = pchase ;
  29.             }
  30.         else i